package com.tyqx.hashchaindao.mapper;

import com.tyqx.hashchainbean.module.JZTLogistics;
import com.tyqx.hashchainbean.vo.JZTLogisticsAndGS1VO;
import com.tyqx.hashchainbean.vo.JZTLogisticsDataVO;
import com.tyqx.hashchainbean.vo.JZTLogisticsVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface JZTLogisticsMapper {


    public Integer addJZTLogistics(JZTLogistics jztLogistics);

    public List<JZTLogisticsVO> getJZTLogisticsByTraceabilityCode(@Param("traceabilityCodes") List<String> traceabilityCodes);

    public List<JZTLogisticsVO> grantGetJZTLogisticsByTraceabilityCode(@Param("traceabilityCodes") List<String> traceabilityCodes,@Param("userName")String userName);


    public List<JZTLogisticsAndGS1VO> getJZTLogisticsAndGS1ByTraceabilityCode(@Param("traceabilityCodes") List<String> traceabilityCodes);

    public List<JZTLogisticsAndGS1VO> grantGetJZTLogisticsAndGS1ByTraceabilityCode(@Param("traceabilityCodes") List<String> traceabilityCodes,@Param("userName")String userName);

    public List<JZTLogisticsVO> getJZTLogisticsByParentTraceabilityCode(String parentTraceabilityCode);

    public List<JZTLogisticsVO> getJZTLogisticsByCode(String traceabilityCode);

    public List<JZTLogisticsDataVO> selectAll();

    public Integer insertBatch(@Param("jztLogisticsList")List<JZTLogistics> jztLogisticsList);

}
